package com.yjt.gcss.gddw.common.dao;

import java.util.ArrayList;
import java.util.Collection;

import org.hibernate.criterion.MatchMode;
import org.springframework.stereotype.Service;

import com.yjt.common.easyui.datagrid.DataGridDAOImpl;
import com.yjt.common.hibernate.base.DaoException;
import com.yjt.gcss.gddw.common.bean.domain.BtOrgUserNoMapping;
import com.yjt.gcss.gddw.common.bean.domain.BtOrgUserNoMappingId;

@Service(BtOrgUserNoMappingDao.BEAN_PACKAGE_NAME)
public class BtOrgUserNoMappingDao extends DataGridDAOImpl {
	public static final String BEAN_PACKAGE_NAME = "com.yjt.gcss.gddw.common.dao.BtOrgUserNoMappingDao";
	public BtOrgUserNoMappingDao() {
		
	}
	
	public BtOrgUserNoMapping getBeanById(BtOrgUserNoMappingId id) throws DaoException {
		return (BtOrgUserNoMapping) getBeanById(BtOrgUserNoMapping.BEAN_PACKAGE_NAME, id, false);
	}
	
	@SuppressWarnings("rawtypes")
	public Collection getAll() throws DaoException {
		return getAll(BtOrgUserNoMapping.BEAN_PACKAGE_NAME);
	}

	@SuppressWarnings("rawtypes")
	public BtOrgUserNoMapping getBeanByParams(String hqlName,ArrayList paraList) throws DaoException{
		return (BtOrgUserNoMapping) getProtoBeanByParams(hqlName,paraList);
	}

	public BtOrgUserNoMapping getBeanByBean(BtOrgUserNoMapping bean, MatchMode mode) throws DaoException{
		return (BtOrgUserNoMapping) getProtoBeanByBean(bean, mode);
	}
	
}
